#include <QtGui/QApplication>
#include <QtGui/QCleanlooksStyle>
#include <QtGui/QSplashScreen>
#include <QtGui/QPixmap>

#include "defines.h"
#include "util/pipsutil.h"
#include "simpledatadiswindow.h"
#include "service/servicepack.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    QApplication::setStyle(new QCleanlooksStyle);

    /*LogService::Initialize(argc, argv);
    LogService::CreateLog(&app, "=========== SYSTEM START ===========");
    LogService::CreateLog(&app, "System Name : " + QString(SYSTEM_NAME));
    LogService::CreateLog(&app, "System Version : " + QString(SYSTEM_VERSION));*/

    UTIL::initPips();

    Q_INIT_RESOURCE(simpledatadis);
    QPixmap pixmap(":/SimpleDataDis/Resources/images/fightforfreedom.png");
    QSplashScreen splash(pixmap);
    splash.showMessage("Creating application...");
    splash.show();

    SimpleDataDisWindow window;
    window.show();
    splash.finish(&window);
    return app.exec();
}
